<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
    <style>
        .InMoney[data-v-1558f0ab] {
            color: red!important;
        }
    </style>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top"><span style="display: none;">加载中...</span> <span></span>
        <ul>
            <li class="on"><a href="{:U('Users/betRecord')}">投注记录</a></li>
            <li class=""><a href="{:U('Users/seekOrder')}">追号记录</a></li>
        </ul>
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/userCenter')}" class="iconfont back"></a>
    </header>

    <div data-v-1558f0ab="" class="main" s="[object Object]">
        <div data-v-1558f0ab="" class="textMore dataType">
            <em data-v-1558f0ab=""></em>
            <i data-v-1558f0ab="" class="iconfont"></i>
        </div>
        <!---->

        <div data-v-1558f0ab="" id="leftTabBox">
            <div data-v-1558f0ab="" class="hd">
                <ul class="fx_ul_record" data-v-1558f0ab="">
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 0){echo 'on';} ?>"><a class="userSearch  active" data-id="0" onclick="xuanze1(this.id)" id="quan" style="text-decoration:none">全部</a></li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 1){echo 'on';} ?>"><a data-id="1" class="userSearch lx active"  onclick="xuanze1(this.id)" id="yi" >已中奖</a></li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 2){echo 'on';} ?>"><a data-id="2" class="userSearch lx active"  onclick="xuanze1(this.id)" id="wei">未中奖</a></li>
                    <li data-v-1558f0ab="" class="lx <?php if($leixing == 3){echo 'on';} ?>"><a data-id="3" class="userSearch lx active"  onclick="xuanze1(this.id)" id="deng">等待开奖</a></li>
                </ul>
            </div>
            <div data-v-1558f0ab="" class="bd dontSelect">
                <div data-v-1558f0ab="" class="scrollBox">
                    <div data-v-1558f0ab="" class="touchScroll">
                      <?php if($arr){ ?>
                        <foreach name="arr" item="v">
                            <div data-v-1558f0ab="">
                                <a data-v-1558f0ab="" class="active" href="{:U('Users/betDetail',array('id'=>$v['id'],'table'=>$v['table'],'lotteryclass'=>$v['lotteryclass']))}" >
                                    <div data-v-1558f0ab="">
                                        <p data-v-1558f0ab="">{$v.classname}    <!--彩种-->
                                            <span data-v-1558f0ab="">￥{$v.money}</span>  <!--投注钱数-->
                                        </p>
                                        <span data-v-1558f0ab=""><?php echo date('Y-m-d H:i:s',$v['ctime']); ?></span><!--投注时间-->
                                    </div>

                                    <strong data-v-1558f0ab="" >
                                        <?php if(trim($v['opencode'])==''){echo '等待开奖';}
                                              elseif($v['zong_money'] > 0 && $v['opencode']!=''){echo '<span data-v-1558f0ab="" class="InMoney">'.sprintf("%.2f",$v['zong_money']).'</span>';}
                                              elseif($v["zong_money"] == 0 && $v["opencode"]!=''){echo "未中奖";} ;?>

                                    </strong> <!--投注状态-->
                                </a>
                                <div data-v-1558f0ab="" class="hr1px"></div>
                            </div>
                        </foreach>
                        <div data-v-1558f0ab="" class="msg noMore">已显示<?php if($shijian==1){echo "今天";}elseif($shijian==2){echo "昨天";}elseif($shijian==3){echo "七天";} ?>全部记录</div>
                      <?php }else{ ?>
                        <div data-v-1558f0ab="" class="fullPageMsg">
                            <div data-v-1558f0ab="" class="fullPageIcon iconfont"></div>
                            <p data-v-1558f0ab="">暂无记录</p>
                        </div>
                      <?php } ?>
                    </div>

                </div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
                <div data-v-1558f0ab="" class="scrollBox"><!----></div>
            </div>
        </div>
        <div class="_problemBox" data-v-1558f0ab="" style="display: none;">
            <div class="blackBg"></div>
            <div class="moreLayer">
                <ul>
                    <li class="<?php if($shijian == 1){echo 'on';} ?> times"><a data-value="1" class="userSearch  active"  onclick="xuanze(this.id)" id="jintian" >今天</a></li>
                    <li class="<?php if($shijian == 2){echo 'on';} ?> times"><a data-value="2" class="userSearch  active "  onclick="xuanze(this.id)" id="zuotian" >昨天</a></li>
                    <li class="<?php if($shijian == 3){echo 'on';} ?> times"><a data-value="3" class="userSearch  active "  onclick="xuanze(this.id)" id="qitian" >七天</a></li>
                </ul>
                <ul>
                    <li><a>取消</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $(".moreLayer ul:nth-of-type(1) li").each(function () {
            if($(this).hasClass("on")){
                $(".dataType em").text($(this).text());
            }
        })
    })


    //    今天 明天 七天 切换
    daytab();
    function daytab() {
        $(".dataType").click(function () {
            $("._problemBox").show()
        });
        $(".blackBg").click(function () {
            $("._problemBox").hide()
        });
        $(".moreLayer li").click(function () {
            $("._problemBox").hide()
        })
    }

    //类型搜索 和 时间搜索

    //时间的 传值
    function xuanze(a){
        var shijian = $("#"+a).attr("data-value");
        var leixing = $(".lx.on").find("a").attr("data-id");
        window.location.href="/Users/BetRecord/shijian/"+shijian+"/leixing/"+leixing;
    }
    function xuanze1(b){
        var shijian = $(".times.on").find("a").attr("data-value");
        var leixing = $("#"+b).attr("data-id");
        window.location.href="/Users/BetRecord/shijian/"+shijian+"/leixing/"+leixing;
    }


</script>
</body>
</html>